﻿using Newtonsoft.Json;

namespace Fadada.FASC.SDK.DotNetCore.Model
{
    /// <summary>
    /// 获取签署模板详情FillActor 注意区分model中还有FillActorTwo（创建签署任务 (基于签署模板)），请注意区分
    /// </summary>
    public class FillActor
    {
        /// <summary>
        /// 填写参与方唯一标识，在创造签署模板时定义的唯一标识。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "actorId", Required = Required.Always)]
        public string ActorId { get; set; }

        /// <summary>
        /// 填写顺序填写顺序编号。编号。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "orderNo", Required = Required.AllowNull)]
        public int OrderNo { get; set; }

        /// <summary>
        /// 参与方主体类型：
        /// person: 个人
        /// corp: 企业。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "actorIdentType", Required = Required.Always)]
        public string ActorIdentType { get; set; }

        /// <summary>
        /// 参与方和控件的关系。
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "fillActorFields", Required = Required.AllowNull)]
        public ActorField[] FillActorFields { get; set; }
    }
}